<template>
  <view class="box">
    <view class="row-card">
      <view class="first-row">
        <view class="first-row-left">
          <view class="card-user">
            <view class="card-detail-img-box"><img class="card-detail-img" :src="eleven" /></view>
            <view class="card-user-name">黑公子私教</view>
          </view>
          <view class="card-title-tag">实名</view>
        </view>
        <view class="card-price">
          <view class="card-price-unit">￥</view>
          <view class="card-price-num">200</view>
          <view class="card-price-reward">+打赏{{ '100' }}</view>
        </view>
      </view>
      <view class="two-row">
        本人出差，急需要12月14日上门帮忙 喂养猫咪。本人出差，急需要12月14日上门帮忙 喂养猫咪。
      </view>
      <view class="three-row">宠物服务 &nbsp|&nbsp 天心区 &nbsp|&nbsp 2024-11-25 12:32</view>
    </view>
  </view>
</template>

<script lang="ts" setup>
import { reactive } from 'vue'
import eleven from '@/static/images/11.jpg'
// 测试 uni API 自动引入
onLoad(() => {})
</script>

<style scoped lang="scss">
.box {
  height: calc(100vh - 265rpx);
  padding: 0 10rpx 10rpx;
  margin-right: -1rem;
  margin-left: -1rem;
  overflow-x: hidden;
  background: #f5f5f5ff;
  .row-card {
    padding: 15rpx;
    margin-top: 10rpx;
    background: #ffffffff;
    border-radius: 10rpx;
    .card-price {
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
      font-weight: bold;
      color: #e73828ff;
      .card-price-unit {
        font-size: 21rpx;
      }
      .card-price-num {
        font-size: 35rpx;
      }
      .card-price-reward {
        font-size: 21rpx;
      }
    }
  }
  .card-title-tag {
    width: 70rpx;
    height: 35rpx;
    margin-left: 5rpx;
    font-size: 19rpx;
    line-height: 35rpx;
    color: #e73828ff;
    text-align: center;
    border: 1px solid #e73828ff;
    border-radius: 2.5rpx;
  }
  .first-row,
  .first-row-left {
    display: flex;
    flex: 1;
    align-items: center;
  }
  .card-user {
    display: flex;
    align-items: center;
    margin-right: 5rpx;
    .card-detail-img-box {
      display: block;
      width: 49rpx;
      height: 49rpx;
      margin-right: 10rpx;
      overflow: hidden;
      border-radius: 10rpx;
      .card-detail-img {
        width: 100%;
        height: 100%;
      }
    }
    .card-user-name {
      color: #999999ff;
    }
  }
  .two-row {
    width: 80%;
    margin-top: 15rpx;
    font-size: 24rpx;
    font-weight: bold;
    line-height: 28rpx;
    color: #333333ff;
  }
  .three-row {
    margin-top: 35rpx;
    font-size: 21rpx;
    color: #999999ff;
  }
}
</style>
